package org.example.project.common.constant;

/**
 * redis key 常量池
 *
 * @author weibin
 * @since 2025/10/12 16:44
 */
public class RedisKeyConstant {

    /**
     * redis 短链接跳转 key
     */
    public static final String SHORT_LINK_GOTO_KEY = "short-link:goto:%s";

    /**
     * redis 短链接跳转锁 key
     */
    public static final String LOCK_SHORT_LINK_GOTO_KEY = "short-link:lock-goto:%s";

    /**
     * 缓存穿透 缓存空对象 key
     */
    public static final String EMPTY_SHORT_LINK_KEY = "short-link:empty:%s";

    /**
     * 短链接统计 uv 的 key
     */
    public static final String SHORT_LINK_STATS_UV = "short-link:stats:uv:%s";
    /**
     * 短链接统计 uip 的 key
     */
    public static final String SHORT_LINK_STATS_UIP = "short-link:stats:uip:%s";

}
